Function: assertm

CALL:

assertm(condition) assertm(condition, msg)

DESCRIPTION:

Check condition. If false call error(msg)

INPUT:

condition any
boolean
msg any
error message that will be displayed if condition==false

OUTPUT:

      This function returns no output arguments
      

EXAMPLE:

      assertm(exist(fname,'file'),'input file does not exist')